]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Make sure to resync when the activating connection changes
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 17:18:42 +0000 (13:18 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 21:15:01 +0000 (17:15 -0400)
Otherwise, we may be left with a stale activating connection if a
connection is activating, but doesn't fully activate for whatever
reason.

https://bugzilla.gnome.org/show_bug.cgi?id=708322

js/ui/status/network.js

index 029c4ca906e7722ef0fe5d6b5cc3685221308e09..b7e6bf9c9b9fafb81d1201363d69e0ab947d507d 100644 (file)
@@ -1287,6 +1287,7 @@ const NMApplet = new Lang.Class({
         this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::state', Lang.bind(this, this._syncNMState));
         this._client.connect('notify::primary-connection', Lang.bind(this, this._syncMainConnection));
+        this._client.connect('notify::activating-connection', Lang.bind(this, this._syncMainConnection));
         this._client.connect('notify::active-connections', Lang.bind(this, this._syncVPNConnections));
         this._client.connect('device-added', Lang.bind(this, this._deviceAdded));
         this._client.connect('device-removed', Lang.bind(this, this._deviceRemoved));